home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
idcutils.zip
/
EJECT.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-06-07
|
1KB
|
69 lines
;
; Program : EJECT.ASM
; Author : Gary Conway
; Created : 5/22/90
; Update :
;
; Infinity Design Concepts, Inc.
; 1052 Parkway Drive
; Louisville, Kentucky 40217-2333
; Voice: (502) 636-1234
; Modem: (502) 635-5471
;
;
; send a cr,lf and formfeed to printer
; we could send just the FORMFEED, but some printers will not recognize
; the FORMFEED character, unless the print head is at column 0.
;
; Assemble with:
;
; MASM EJECT;
; LINK EJECT;
; EXE2BIN EJECT.EXE EJECT.COM
; DEL EJECT.EXE
.XLIST
.XCREF
CSEG SEGMENT PARA PUBLIC 'CODE'
ASSUME CS:CSEG,DS:CSEG,ES:CSEG, SS:CSEG
ORG 100H
ENTPT Proc
Mov SI,offset String
Print: Lodsb ; get character to print
Or AL,AL ; end of string ?
Jz Exit ; yup, done
Mov AH,5
Mov DL,AL
Int 21h ; print the character
Jmp short Print ; do em all!
Exit: Mov AX,4C00h
Int 21h ; back to DOS
ENTPT ENDP
CR Equ 13 ; CR may now be used instead of 13
LF Equ 10 ; LF " " " " " " 10
ESCchar Equ 27 ; ESC (ESCape) character
String DB CR,LF,12,0
CSEG ENDS
END ENTPT